package com.kingzoder.food.common.base.page;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 轩辕铮
 */
@Schema(description = "分页查询排序字段")
@Data
public class BaseSortField implements Serializable {

    @SchemaProperty(name = "排序字段")
    private String field;

    @SchemaProperty(name = "是否升序，默认升序")
    private boolean asc = true;
}
